package ar.com.solidussource.howmuchmobile.services.mocks;

import ar.com.solidussource.howmuchmobile.common.entities.Address;
import ar.com.solidussource.howmuchmobile.common.entities.Geopoint;
import ar.com.solidussource.howmuchmobile.common.entities.Market;
import ar.com.solidussource.howmuchmobile.common.entities.Marketcategory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: FT31270775
 * Date: 20/09/12
 * Time: 16:47
 * To change this template use File | Settings | File Templates.
 */
public class MarketGlobalPositioningService {

    public List<Market> getMarkets(){
        List<Market> markets = new ArrayList<Market>();

        Marketcategory marketcategory1 = new Marketcategory();
        marketcategory1.setName("Kiosko");

        Market market1 = new Market();
        market1.setId(1);
        market1.setScore(100);
        market1.setMarketcategory(marketcategory1);
        market1.setName("Moreno Market");
        Geopoint globalPositioning1 = new Geopoint();
        globalPositioning1.setLatitude(-34.633*1E6);
        globalPositioning1.setLongitude(-58.791*1E6);
        Address address1 = new Address();
        address1.setName("Martin fierro 500");
        address1.setGeopoint(globalPositioning1);
        market1.setAddress(address1);

        markets.add(market1);

        Market market2 = new Market();
        market2.setId(2);
        market2.setScore(200);
        market2.setMarketcategory(marketcategory1);
        market2.setName("Merlo Market");
        Geopoint globalPositioning2 = new Geopoint();
        globalPositioning2.setLatitude(-34.634*1E6);
        globalPositioning2.setLongitude(-58.794*1E6);
        Address address2 = new Address();
        address2.setName("Chile 456");
        address2.setGeopoint(globalPositioning2);
        market2.setAddress(address2);

        markets.add(market2);

        Market market3 = new Market();
        market3.setId(3);
        market3.setScore(300);
        market3.setMarketcategory(marketcategory1);
        market3.setName("Paso del Rey Market");
        Geopoint globalPositioning3 = new Geopoint();
        globalPositioning3.setLatitude(-34.637*1E6);
        globalPositioning3.setLongitude(-58.797*1E6);
        Address address3 = new Address();
        address3.setName("Victorica 123");
        address3.setGeopoint(globalPositioning3);
        market3.setAddress(address3);

        markets.add(market3);

        Market market4 = new Market();
        market4.setId(4);
        market4.setScore(400);
        market4.setMarketcategory(marketcategory1);
        market4.setName("Ciudad de DIOS Market");
        Geopoint globalPositioning4 = new Geopoint();
        globalPositioning4.setLatitude(-34.638*1E6);
        globalPositioning4.setLongitude(-58.798*1E6);
        Address address4 = new Address();
        address4.setName("Colombia 789");
        address4.setGeopoint(globalPositioning4);
        market4.setAddress(address4);

        markets.add(market4);

        return markets;

    }

    public List<Market> getMarketsByRatio(Double latitude, Double longitude, int ratio){
        return null;
    }


}
